import {ApiProperty} from "@nestjs/swagger";
import {IsNotEmpty} from "class-validator";

export class RegisterDto{
  @ApiProperty({description:'用户名'})
  @IsNotEmpty()
  username:string

  @IsNotEmpty()
  @ApiProperty({description:'密码'})
  password:string
}